
<template>
    <div v-if="props.scope.status==1||getUserInfo.typeCode == 'admin'">
        <el-button v-hasPermi="props.tableItem.btnArray[0].hasPermi || []" style="padding: 5px" :size="'small'"
            type="primary" @click="props.tableItem.btnArray[0].handle(props.scope)" text>修改</el-button>
        <el-button v-hasPermi="props.tableItem.btnArray[1].hasPermi || []" style="padding: 5px" :size="'small'"
            type="danger" @click="props.tableItem.btnArray[1].handle(props.scope)" text>删除</el-button>
    </div>
</template>
<script setup>
import { onMounted } from 'vue'
const props = defineProps({ scope: { default: function () { return [] } }, tableItem: { default: function () { return [] } } })
const getUserInfo = JSON.parse(localStorage.getItem('userInfo')) || {}
onMounted(() => {
    // console.log(props.scope.status, 'props')
})
</script>

<style></style>
